home *** CD-ROM | disk | FTP | other *** search
/ Freelog 42 / Freelog042.iso / Bas / Jeux / BallBreaker / BallBreaker[1].swf / scripts / frame_5 / DoAction.as
Text File  |  2003-01-12  |  1KB  |  39 lines

  1. if("395" < getProperty("/Halo1", _X))
  2. {
  3.    Direction1X5 = - Direction1X5;
  4. }
  5. else if(getProperty("/Halo1", _X) < "83")
  6. {
  7.    Direction1X5 = - Direction1X5;
  8. }
  9. if("395" < getProperty("/Halo2", _X))
  10. {
  11.    Direction2X6 = - Direction2X6;
  12. }
  13. else if(getProperty("/Halo2", _X) < "83")
  14. {
  15.    Direction2X6 = - Direction2X6;
  16. }
  17. if("339" < getProperty("/Halo3", _X))
  18. {
  19.    Direction3X7 = - Direction3X7;
  20. }
  21. else if(getProperty("/Halo3", _X) < "136")
  22. {
  23.    Direction3X7 = - Direction3X7;
  24. }
  25. if("339" < getProperty("/Halo4", _X))
  26. {
  27.    Direction4X8 = - Direction4X8;
  28. }
  29. else if(getProperty("/Halo4", _X) < "136")
  30. {
  31.    Direction4X8 = - Direction4X8;
  32. }
  33. setProperty("/Halo1", _X, getProperty("/Halo1", _X) + Direction1X5);
  34. setProperty("/Halo2", _X, getProperty("/Halo2", _X) + Direction2X6);
  35. setProperty("/Halo3", _X, getProperty("/Halo3", _X) + Direction3X7);
  36. setProperty("/Halo4", _X, getProperty("/Halo4", _X) + Direction4X8);
  37. setProperty("/Halo5", _X, getProperty("/Halo5", _X) + Direction1X5);
  38. setProperty("/Halo6", _X, getProperty("/Halo6", _X) + Direction2X6);
  39.